package com.lagou.minicat.core;

import javax.servlet.Servlet;

public class Wrapper {

    private String urlPattern;
    private String servletClass;
    private Servlet servlet;

    public Wrapper(String urlPattern, String servletClass, Servlet servlet) {
        this.urlPattern = urlPattern;
        this.servletClass = servletClass;
        this.servlet = servlet;
    }

    public String getUrlPattern() {
        return urlPattern;
    }

    public void setUrlPattern(String urlPattern) {
        this.urlPattern = urlPattern;
    }

    public String getServletClass() {
        return servletClass;
    }

    public void setServletClass(String servletClass) {
        this.servletClass = servletClass;
    }

    public Servlet getServlet() {
        return servlet;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
    }

    @Override
    public String toString() {
        return "Wrapper{" +
                "urlPattern='" + urlPattern + '\'' +
                ", servletClass='" + servletClass + '\'' +
                '}';
    }
}
